#ifndef DATE_H
#define DATE_H



#include <QMessageBox>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QVariant>
#include <QSqlDriver>
#include <QSqlRecord>
#include <QSqlField>
#include <QSqlError>
#include <QDebug>
#include "mainwindow.h"




struct qq{

    QString time;
    QString name;
    QString record;

};

class date
{


public:
    int i;
    int j;
    int k;
    qq CO[200];
    date();
    void addprivatemessage(pp &person);
    void deleteprivatemessage(QString &name);
    pp searchprivatemessage(QString &name);
    void sendallfriends(pp *AO,  pp  *BO);
    void insertchatlist(QString &time,QString &name,QString &record);
    void browsechatlist(QString &mingzi);
    static bool createConnection1();
    static bool createConnection2();

public slots:
    void jia(pp);


};

#endif // DATE_H
